package belf.migrate.api.util;

import com.alibaba.druid.DbType;
import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.ast.SQLStatement;
import com.alibaba.druid.sql.visitor.VisitorFeature;

public class SQLConverter {
    public static String convertSingleSQL(String sql, DbType dbType) {
        SQLStatement dest = SQLUtils.parseSingleStatement(sql, dbType);
        return dest.toString(VisitorFeature.OutputPrettyFormat, VisitorFeature.OutputUCase);

    }
}
